package com.ima.web.service;

import java.util.List;

import com.ima.web.beans.db.Roles;
import com.ima.web.beans.db.Users;
import com.ima.web.beans.form.UsersForm;
import com.ima.web.exceptions.UserExistsException;

public interface UserService {

	Users getUserData(int id);
	Users getUserData(String username);
	Users createUser(Users u,Roles r) throws UserExistsException;
	Users createUser(Users u,List<Roles> r) throws UserExistsException;
	boolean checkUserExists(String username);
	Users signUpUser(UsersForm u) throws UserExistsException;
}
